Singleton class that implements IMouse
Properties
Mode
Gets/sets the current mouse cursor mode.
Visible
Gets/sets whether the mouse cursor is visible.
x
Gets current mouse X position.
y
Gets current mouse Y position.
Methods
ChangeModeGraphic
void ChangeModeGraphic(CursorMode cursorMode, int slot)
Changes the sprite for the specified mouse cursor.
ChangeModeHotspot
Changes the active hotspot for the specified mouse cursor.
ChangeModeView
Changes the view used to animate the specified mouse cursor.
DisableMode
void DisableMode(CursorMode cursorMode)
void DisableMode(int cursorMode)
Disables the specified cursor mode.
EnableMode
void EnableMode(CursorMode cursorMode)
Re-enables the specified cursor mode.
GetModeGraphic
Gets the sprite used for the specified mouse cursor.
SaveCursorUntilItLeaves
Remembers the current mouse cursor and restores it when the mouse leaves the current area.
SelectNextMode
Cycles to the next available mouse cursor.
SelectPreviousMode
Selects the previous enabled mouse cursor mode.
SetBounds
Restricts the mouse movement to the specified area.
SetPosition
void SetPosition(int x, int y)
Moves the mouse cursor to the specified location.
Update
Updates the X and Y co-ordinates to match the current mouse position.
UseDefaultGraphic
Changes the current mouse cursor back to the default for the current mode.
UseModeGraphic
void UseModeGraphic(CursorMode cursorMode)
Changes the mouse cursor to use the graphic for a different non-active cursor mode.